﻿<UserControl x:Class="Probel.Ldoc.Views.Controls.DoctorCardEditableView"
           
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:conv="clr-namespace:Probel.Ldoc.Views.Converters"
             xmlns:t="clr-namespace:Probel.Ldoc.Views.Properties"
             
             mc:Ignorable="d" >
    <UserControl.Resources>
        <conv:BoolToDoctorGenderImageConverter x:Key="BoolToGender"/>
    </UserControl.Resources>
    <Border BorderThickness="5"
            CornerRadius="5"
            Background="#FFF4F8FC">
        <Border.Effect>
            <DropShadowEffect Color="#FFB6B6B6"/>
        </Border.Effect>
        <DockPanel>
            <StackPanel DockPanel.Dock="Right"
                        VerticalAlignment="Center">
                <Button Background="{x:Null}" 
                        BorderBrush="{x:Null}"
                        Width="20" Height="20"
                        Command="{Binding RemoveCommand}">
                    <Image Source="/Probel.Ldoc.Views;component/Images/Delete.ico"/>
                </Button>
            </StackPanel>

            <Image DockPanel.Dock="Left" 
                   Source="{Binding IsFemale, Converter={StaticResource BoolToGender}}"
                   Height="32"
                   Width="32"/>

            <TextBlock DockPanel.Dock="Top"
                       FontWeight="Bold"
                       Width="Auto"
                       HorizontalAlignment="Left">
                <Run Text="{Binding FirstName}"/>
                <Run Text="{Binding LastName}"/>
            </TextBlock>
            <TextBlock DockPanel.Dock="Bottom"
                       Width="Auto"
                       HorizontalAlignment="Left">
                <Run Text="{x:Static t:Messages.Lbl_Specialisation}"/>
                <Run Text="{Binding Specialisation.Name}" FontWeight="Bold"/>
            </TextBlock>
        </DockPanel>
    </Border>
</UserControl>

